package com.mobile.framework.exception;

/**
 * An application specific exception class.
 */
public class AppException extends BaseException {

	/**
	 * Empty Constructor
	 */
	public AppException() {
		super();
	}

	/**
	 * Construct an AppException with a Throwable object.
	 * 
	 * @param cause
	 *            root exception cause
	 */
	public AppException(Throwable cause) {
		super(cause);
	}

	/**
	 * Construct an AppException with message key.
	 * 
	 * @param key
	 *            The message key to look up
	 */
	public AppException(String key) {
		super(key);
	}

	/**
	 * Construct an AppException with message key and arguments.
	 * 
	 * @param key
	 *            The message key to look up
	 * @param args
	 *            An array of replacement parameters for placeholders
	 */
	public AppException(String key, Object[] args) {
		super(key, args);
	}

	/**
	 * Construct an AppException with message key, message arguments and a
	 * Throwable object.
	 * 
	 * @param key
	 *            The message key to look up
	 * @param args
	 *            An array of replacement parameters for placeholders
	 * @param cause
	 *            root exception cause
	 */
	public AppException(String key, Object[] args, Throwable cause) {
		super(key, args, cause);
	}

}